package com.sdruixinggroup.mondayb2b.models;

import java.util.List;

/**
 * Created by 00029935 on 2017/12/7.
 */

public class Order {


    /**
     * err_code : 0
     * err_msg : OK
     * timestamp : 1514995810
     * orders : {"page":1,"data":[{"id":638,"status":5,"status_name":"待评价","order_sn":"20180103214828502126","payment_type":4,"pay_money":79,"created_time":"2018-01-03 21:51:00","order_goods":[{"commented":1,"order_goods_id":661,"goods_id":6,"quantity":1,"price":68,"goods_name":"51%复合肥","goods_pic":"http://oyu6ee76y.bkt.clouddn.com/d7b49f52f0515d29531b6df279c66e5d.jpg","total_money":68},{"commented":0,"order_goods_id":662,"goods_id":4,"quantity":1,"price":1,"goods_name":"48%复合肥","goods_pic":"http://oyu6ee76y.bkt.clouddn.com/dfaee649dfb1435f1e1ca5b71c3150f4.jpg","total_money":1},{"commented":0,"order_goods_id":663,"goods_id":1,"quantity":1,"price":10,"goods_name":"48%复合肥","goods_pic":"http://oyu6ee76y.bkt.clouddn.com/6d6550b3f4651f7d6e0d31970bb783f1.jpg","total_money":10}]}],"page_size":10,"total_records":1,"total_pages":1}
     */

    private int err_code;
    private String err_msg;
    private int timestamp;
    private OrdersBean orders;

    public int getErr_code() {
        return err_code;
    }

    public void setErr_code(int err_code) {
        this.err_code = err_code;
    }

    public String getErr_msg() {
        return err_msg;
    }

    public void setErr_msg(String err_msg) {
        this.err_msg = err_msg;
    }

    public int getTimestamp() {
        return timestamp;
    }

    public void setTimestamp(int timestamp) {
        this.timestamp = timestamp;
    }

    public OrdersBean getOrders() {
        return orders;
    }

    public void setOrders(OrdersBean orders) {
        this.orders = orders;
    }

    public static class OrdersBean {
        /**
         * page : 1
         * data : [{"id":638,"status":5,"status_name":"待评价","order_sn":"20180103214828502126","payment_type":4,"pay_money":79,"created_time":"2018-01-03 21:51:00","order_goods":[{"commented":1,"order_goods_id":661,"goods_id":6,"quantity":1,"price":68,"goods_name":"51%复合肥","goods_pic":"http://oyu6ee76y.bkt.clouddn.com/d7b49f52f0515d29531b6df279c66e5d.jpg","total_money":68},{"commented":0,"order_goods_id":662,"goods_id":4,"quantity":1,"price":1,"goods_name":"48%复合肥","goods_pic":"http://oyu6ee76y.bkt.clouddn.com/dfaee649dfb1435f1e1ca5b71c3150f4.jpg","total_money":1},{"commented":0,"order_goods_id":663,"goods_id":1,"quantity":1,"price":10,"goods_name":"48%复合肥","goods_pic":"http://oyu6ee76y.bkt.clouddn.com/6d6550b3f4651f7d6e0d31970bb783f1.jpg","total_money":10}]}]
         * page_size : 10
         * total_records : 1
         * total_pages : 1
         */

        private int page;
        private int page_size;
        private int total_records;
        private int total_pages;
        private List<DataBean> data;

        public int getPage() {
            return page;
        }

        public void setPage(int page) {
            this.page = page;
        }

        public int getPage_size() {
            return page_size;
        }

        public void setPage_size(int page_size) {
            this.page_size = page_size;
        }

        public int getTotal_records() {
            return total_records;
        }

        public void setTotal_records(int total_records) {
            this.total_records = total_records;
        }

        public int getTotal_pages() {
            return total_pages;
        }

        public void setTotal_pages(int total_pages) {
            this.total_pages = total_pages;
        }

        public List<DataBean> getData() {
            return data;
        }

        public void setData(List<DataBean> data) {
            this.data = data;
        }

        public static class DataBean {
            /**
             * id : 638
             * status : 5
             * status_name : 待评价
             * order_sn : 20180103214828502126
             * payment_type : 4
             * pay_money : 79.0
             * created_time : 2018-01-03 21:51:00
             * order_goods : [{"commented":1,"order_goods_id":661,"goods_id":6,"quantity":1,"price":68,"goods_name":"51%复合肥","goods_pic":"http://oyu6ee76y.bkt.clouddn.com/d7b49f52f0515d29531b6df279c66e5d.jpg","total_money":68},{"commented":0,"order_goods_id":662,"goods_id":4,"quantity":1,"price":1,"goods_name":"48%复合肥","goods_pic":"http://oyu6ee76y.bkt.clouddn.com/dfaee649dfb1435f1e1ca5b71c3150f4.jpg","total_money":1},{"commented":0,"order_goods_id":663,"goods_id":1,"quantity":1,"price":10,"goods_name":"48%复合肥","goods_pic":"http://oyu6ee76y.bkt.clouddn.com/6d6550b3f4651f7d6e0d31970bb783f1.jpg","total_money":10}]
             */

            private int id;
            private int status;
            private String status_name;
            private String order_sn;
            private int payment_type;
            private double pay_money;
            private String created_time;
            private List<OrderGoodsBean> order_goods;

            public int getId() {
                return id;
            }

            public void setId(int id) {
                this.id = id;
            }

            public int getStatus() {
                return status;
            }

            public void setStatus(int status) {
                this.status = status;
            }

            public String getStatus_name() {
                return status_name;
            }

            public void setStatus_name(String status_name) {
                this.status_name = status_name;
            }

            public String getOrder_sn() {
                return order_sn;
            }

            public void setOrder_sn(String order_sn) {
                this.order_sn = order_sn;
            }

            public int getPayment_type() {
                return payment_type;
            }

            public void setPayment_type(int payment_type) {
                this.payment_type = payment_type;
            }

            public double getPay_money() {
                return pay_money;
            }

            public void setPay_money(double pay_money) {
                this.pay_money = pay_money;
            }

            public String getCreated_time() {
                return created_time;
            }

            public void setCreated_time(String created_time) {
                this.created_time = created_time;
            }

            public List<OrderGoodsBean> getOrder_goods() {
                return order_goods;
            }

            public void setOrder_goods(List<OrderGoodsBean> order_goods) {
                this.order_goods = order_goods;
            }

            public static class OrderGoodsBean {
                /**
                 * commented : 1
                 * order_goods_id : 661
                 * goods_id : 6
                 * quantity : 1
                 * price : 68.0
                 * goods_name : 51%复合肥
                 * goods_pic : http://oyu6ee76y.bkt.clouddn.com/d7b49f52f0515d29531b6df279c66e5d.jpg
                 * total_money : 68.0
                 */

                private int commented;
                private int order_goods_id;
                private int goods_id;
                private int quantity;
                private double price;
                private String goods_name;
                private String goods_pic;
                private double total_money;

                public int getCommented() {
                    return commented;
                }

                public void setCommented(int commented) {
                    this.commented = commented;
                }

                public int getOrder_goods_id() {
                    return order_goods_id;
                }

                public void setOrder_goods_id(int order_goods_id) {
                    this.order_goods_id = order_goods_id;
                }

                public int getGoods_id() {
                    return goods_id;
                }

                public void setGoods_id(int goods_id) {
                    this.goods_id = goods_id;
                }

                public int getQuantity() {
                    return quantity;
                }

                public void setQuantity(int quantity) {
                    this.quantity = quantity;
                }

                public double getPrice() {
                    return price;
                }

                public void setPrice(double price) {
                    this.price = price;
                }

                public String getGoods_name() {
                    return goods_name;
                }

                public void setGoods_name(String goods_name) {
                    this.goods_name = goods_name;
                }

                public String getGoods_pic() {
                    return goods_pic;
                }

                public void setGoods_pic(String goods_pic) {
                    this.goods_pic = goods_pic;
                }

                public double getTotal_money() {
                    return total_money;
                }

                public void setTotal_money(double total_money) {
                    this.total_money = total_money;
                }
            }
        }
    }
}
